#if !defined(AFX_AWTCANVASPEER_H__E5A3AEC8_4309_11D2_A3F3_006097A44215__INCLUDED_)
#define AFX_AWTCANVASPEER_H__E5A3AEC8_4309_11D2_A3F3_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// AWTCanvasPeer.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// AWTCanvasPeer window

class AFX_EXT_CLASS AWTCanvasPeer : public CWnd
{
DECLARE_DYNAMIC(AWTCanvasPeer)
// Construction
public:
	AWTCanvasPeer(AWTComponent* comp);

// Attributes
public:

// Operations
public:

#ifndef UNDER_CE
	void setToolTipCtrl(CToolTipCtrl* p)
		{m_toolTipCtrl = p;}
#endif //UNDER_CE

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(AWTCanvasPeer)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~AWTCanvasPeer();

	// Generated message map functions
protected:
	//{{AFX_MSG(AWTCanvasPeer)
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDestroy();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnEditCopy();
	afx_msg void OnEditCut();
	afx_msg void OnEditPaste();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	AWTComponent* m_comp;
	CWnd* m_AWTWindow;
	bool m_bCapture;
#ifndef UNDER_CE
	CToolTipCtrl* m_toolTipCtrl;
#endif UNDER_CE
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AWTCANVASPEER_H__E5A3AEC8_4309_11D2_A3F3_006097A44215__INCLUDED_)
